package com.jy.oms.framework.thread;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 默认全局异常处理
 *
 * @author liuquan
 */
public class DefaultUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    private static Logger logger = LoggerFactory.getLogger(DefaultUncaughtExceptionHandler.class);

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        logger.error(t.getName(), e);
    }
}
